package ru.study.thinkin.chapter8;

class Glyph {
	void draw() {
		System.out.println("Glyph draw()");
	}

	public Glyph() {
		System.out.println("Glyph() перед вызовом draw()");
		draw();
		System.out.println("Glyph() после вызовом draw()");
	}
}

class RoundGlyph extends Glyph {
	private int radius = 1;

	RoundGlyph(int r) {
		radius = r;
		System.out.println("RoundGlyph() , radius " + radius);
	}

	@Override
	void draw() {
		System.out.println("RoundGlyph draw(), radius " + radius);
	}
}

public class PolyConstructors {

	public static void main(String[] args) {
		new RoundGlyph(5);

	}
}
